You did not mention permissions. I hope everything's fine but this is first that come to mind with your description:UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) { granted, error in
if let error = error {
print("D'oh: \(error.localizedDescription)")
} else {
application.registerForRemoteNotifications()
}
}